# crawler/serializer.py

from rest_framework import serializers

from crawler.models import Crawler, MonitoringGoods, MonitoringGoodsPriceHistory


class CrawlerProfileSerializer(serializers.ModelSerializer):
	class Meta:
		model = Crawler
		fields = '__all__'


class CheckGoodsByMonitoringSerializer(serializers.ModelSerializer):
	class Meta:
		model = MonitoringGoods
		fields = '__all__'

class AddGoodsToMonitoringSerializer(serializers.ModelSerializer):
	class Meta:
		model = MonitoringGoods
		fields = ('address', 'image', 'name', 'shop', 'keyboard', 'crawler')


class GoodsPriceHistorySerializer(serializers.ModelSerializer):
	class Meta:
		model = MonitoringGoodsPriceHistory
		fields = '__all__'